-- GENERATED SPELL FOR [Encrusted Surf Crawler] --


function spell0_3108(pUnit, Event) --@Quick Sidestep,Self--
pUnit:FullCastSpellOnTarget(5426,pUnit)
pUnit:RegisterEvent('Sorts_3108', 6000, 1)
end

function Sorts_3108(pUnit, Event)
local choix_sorts_3108 = math.random(0, 0)
if choix_sorts_3108 == 0 then
pUnit:RegisterEvent('spell0_3108', 1, 1)
end
end

function mob3108_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3108', math.random(1500, 3000), 1)
end

function mob3108_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3108_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3108_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3108, 1, 'mob3108_Action')
RegisterUnitEvent(3108, 2, 'mob3108_Leave')
RegisterUnitEvent(3108, 3, 'mob3108_Kill')
RegisterUnitEvent(3108, 4, 'mob3108_Die')
